#include "Avalon/SignalHandling/ScopedGroupConnection.hpp"

using namespace Avalon;
using namespace Avalon::SignalHandling;

ScopedGroupConnection::ScopedGroupConnection() {}

ScopedGroupConnection::ScopedGroupConnection(const GroupConnection& connection)
    : GroupConnection(connection) {}

ScopedGroupConnection::~ScopedGroupConnection() {
  Disconnect();
}

ScopedGroupConnection& ScopedGroupConnection::operator =(
    const GroupConnection& rhs) {
  Disconnect();
  GroupConnection::operator =(rhs);
  return *this;
}
